﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BRMC.IntelligentCommunity.IntelligentCommunity.Parkings
{
     public class CarLogHistory : FullAuditedEntity<long>, IMustHaveTenant
    {
        /// <summary>
        /// 日志类型
        /// </summary>
        public int  LogType { get; set; }
        /// <summary>
        /// 停车场ID
        /// </summary>
        public long ParkingId { set; get; }


        /// <summary>
        /// 车辆编号
        /// </summary>
        public string CarNum { set; get; }
        /// <summary>
        /// 岗亭Id
        /// </summary>
        public long GuardId { set; get; }

        /// <summary>
        /// 设备ID或MAC
        /// </summary>
        public string CamId { set; get; }
        /// <summary>
        /// 设备IP
        /// </summary>
        public string Ipaddr { set; get; }
        /// <summary>
        /// 车辆类型
        /// </summary>
        public int CarType { get; set; }
        /// <summary>
        /// 费用
        /// </summary>
        public decimal Cost { set; get; }
        /// <summary>
        /// 记录时间/入场时间
        /// </summary>
        public DateTime? LogTime { set; get; }
        /// <summary>
        /// 缴费订单编号
        /// </summary>
        public string OrderId { set; get; }
        /// <summary>
        /// 小区Id
        /// </summary>
        public int TenantId { get; set; }
        /// <summary>
        /// 小区Id
        /// </summary>
        public long? Neighbourhood_id { get; set; }
        /// <summary>
        /// 离场时间
        /// </summary>
        public DateTime? EndTime { set; get; }

        /// <summary>
        /// 出场：岗亭Id
        /// </summary>
        public long? OutGuardId { get; set; }

        /// <summary>
        /// 出场：设备Id
        /// </summary>
        public string OutCamId { get; set; }

        /// <summary>
        /// 出场设备Ip
        /// </summary>
        public string OutIpaddr { get; set; }

        /// <summary>
        /// 计费说明
        /// </summary>
        public string CostRemark { get; set; }

        /// <summary>
        /// 是否出场
        /// </summary>
        public bool IsOut { get; set; }

        /// <summary>
        /// 在场日志Id
        /// </summary>
        public long? CarLogRealTimeId { get; set; }

        /// <summary>
        /// 车位Id
        /// </summary>
        public long? PlaceId { get; set; }
        
        /// <summary>
        /// 车辆Id
        /// </summary>
        public long CarId { get; set; }
    }
}
